import { axios as request  } from '@/utils/request'

export function settlement(data) {
  return request({
    url: 'api/finance/collection/settlement',
    method: 'post',
    data
  })
}

export function record(id) {
  return request({
    url: 'api/finance/settlement/record',
    method: 'get',
    params: id
  })
}

// export function settlementImg(params) {
//   return request({
//     url: 'api/finance/settlement/image',
//     method: 'get',
//     params
//   })
// }

export function getFinishDetail(id) {
  return request({
    url: `api/delivery/finish/detail/${id}`,
    method: 'get',
  })
}

export default { settlement, record }
